package com.msb.mapper;


import com.msb.pojo.Book;

import java.util.List;

/**
 * 映射接口
 * @author wuJiaWei
 * @version 1.0
 */
public interface BookMapper {
    List<Book> selectAllBooks();

    Book selectBookById(int id);

    Book selectOneBook(String name,String author);//纯参数

    Book selectOneBook2(Book book);//一个参数且参数为对象，获取参数
    Book selectOneBook3(String name,Book book);//多个参数且参数有对象，获取参数
    public abstract int insertBook(Book book);//插入操作
    public abstract int deleteBookById(int id);//删除操作
}
